<template>
  <div class="home__wrap">
    <a-layout id="components-layout-demo-side" style="min-height: 100vh">
      <a-layout-sider v-model="collapsed" collapsible>
        <div class="logo"/>
        <a-menu theme="dark" :default-selected-keys="['1']" mode="inline">
          <a-menu-item key="1">
            <a-icon type="desktop" />
            <span class="nav-text">项目搭建</span>
            <router-link to="/one"/>
          </a-menu-item>
          <a-menu-item key="2">
            <a-icon type="desktop"/>
            <span>模块生成</span>
            <router-link to="/two"/>
          </a-menu-item>
          <a-menu-item key="3">
            <a-icon type="desktop"/>
            <span>更新SQL</span>
            <router-link to="/three"/>
          </a-menu-item>
        </a-menu>
      </a-layout-sider>
      <a-layout>
        <a-layout-heade class="header-title">基于SpringBoot的代码自动生成引擎</a-layout-heade>
        <a-layout-content style="margin: 0 16px">
<!--          <a-breadcrumb style="margin: 16px 0" separator=">">-->
<!--            <a-breadcrumb-item>User</a-breadcrumb-item>-->
<!--            <a-breadcrumb-item>Bill</a-breadcrumb-item>-->
<!--          </a-breadcrumb>-->
          <div :style="{ padding: '24px', background: '#fff', minHeight: '860px' }">
            <router-view></router-view>
          </div>
        </a-layout-content>
        <a-layout-footer style="text-align: center">
          Ant Design ©2018 Created by Ant UED
        </a-layout-footer>
      </a-layout>
    </a-layout>
  </div>

</template>

<script>
export default {
  name: "home",
  data() {
    return {
      collapsed: false,
    };
  },
}
</script>

<style scoped>
.home__wrap {
  height: 100%;
  width: 100%;
}
.header-title{
  background: #6281D2;
  padding: 0;
  text-align: center;
  font-size: 25px;
}
#components-layout-demo-responsive .logo {
  height: 32px;
  background: rgba(255, 255, 255, 0.2);
  margin: 16px;
}
</style>
